﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <SolidColorBrush x:Key="EnabledMask" Color="#FF000000"/>

    <LinearGradientBrush x:Key="DisabledMask" StartPoint="0, 0.5" EndPoint="1, .5">
        <LinearGradientBrush.GradientStops>
            <GradientStop Color="#00000000" Offset="0" />
            <GradientStop Color="#88000000" Offset=".4" />
            <GradientStop Color="#88000000" Offset=".6" />
            <GradientStop Color="#00000000" Offset="1" />
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>

    <Style x:Key="ToolButtonStyle" TargetType="{x:Type Button}">
        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="OpacityMask" Value="{StaticResource DisabledMask}" />
            </Trigger>
            <Trigger Property="IsEnabled" Value="True">
                <Setter Property="OpacityMask" Value="{StaticResource EnabledMask}" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="PageSite" TargetType="Border">
        <Setter Property="Effect" >
            <Setter.Value>
                <DropShadowEffect Opacity="0.2" BlurRadius="4" ShadowDepth="3" />
            </Setter.Value>
        </Setter>
        <Setter Property="Margin" Value="4,5,6,5" />
        <Setter Property="Padding" Value="2,4,4,4" />
        <Setter Property="Background" Value="White" />
        <Setter Property="BorderBrush" Value="#AAB3B3" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Height" Value="95" />
    </Style>

</ResourceDictionary>